# THIS IS A FUNCTION THAT SOURCES ALL THE NECESSARY FUNCTIONS BASED ON
# ITS CURRENT DIRECTORY. USED BY THE PBS SCRIPT

# source distR functions
source("distR.R")
source("distRCleanup.R")

# source kernel-related functions
source("kernel/gpuWrapper.R")         #wrapper function which deploys
                                      #either a CPU or GPU kernel

source("kernel/gpuFuncs.R")           #C functions that call, that invoke
                                      #the corresponding CUDA kernels

source("kernel/cpuFuncs.R")           #CPU variants of the above CUDA kernels



